package com.example.gcmtest.lib;

public class CommonLib {
	public static byte[] convertToByteArray(int data) {
		byte[] ret = new byte[4];

		ret[0] = (byte)((data      ) & 0xFF);
		ret[1] = (byte)((data >> 8 ) & 0xFF);
		ret[2] = (byte)((data >> 16) & 0xFF);
		ret[3] = (byte)((data >> 24) & 0xFF);

		return ret;
	}
}
